package cn.cvs.dao;

import cn.cvs.pojo.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface SysUserMapper {
    SysUser selectByAccount(@Param("account") String var1) throws Exception;

    int add(SysUser var1) throws Exception;

    List<SysUser> selectList(@Param("realName") String var1, @Param("roleId") Integer var2, @Param("pageBegin") Integer var3, @Param("pageSize") Integer var4) throws Exception;

    int selectCount(@Param("realName") String var1, @Param("roleId") Integer var2) throws Exception;

    int deleteById(@Param("id") Integer var1) throws Exception;

    SysUser selectById(@Param("id") Integer var1) throws Exception;

    int update(SysUser var1) throws Exception;

    int updatePwd(@Param("id") Integer var1, @Param("password") String var2) throws Exception;

    SysUser getIsPwd(@Param("id") Integer id,
                     @Param("password") String password);
}
